
<%-------------------------------------------------------------------
 * 页面名称：ModifyCorpAccountUserInfo.jsp
 * 功能描述：修改企业信息
 * Action  : 
 *
 *-------------------------------------------------------------------
--%>
<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib uri="struts-html.tld" prefix="html"%>
<%@ taglib uri="struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="struts-logic.tld" prefix="logic"%>
<%@ taglib uri="struts-bean.tld" prefix="bean"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="ipb" uri="/WEB-INF/conf/tld/ipb.tld"%>
<%@ taglib prefix="ad" uri="agiledata"%>
<%@ page import="cn.agiledata.bank.common.util.Constant"%>
<%@ page import="cn.agiledata.bank.account.service.IAccountConst"%>
<%@ page import="cn.agiledata.bank.account.service.AccountSummary"%>
<%
	String path = request.getContextPath();
	AccountSummary user = (AccountSummary) session
			.getAttribute(Constant.SESSION_ACCOUNT_SUMMARY);
%>
<script type='text/javascript' src='<%=path%>/js/ufront.js'></script>
<SCRIPT LANGUAGE="javascript" src="<%=path%>/js/js.js"></SCRIPT>
<script type='text/javascript'
	src='<%=path%>/dwr/interface/accountTemplate.js'></script>
<script type='text/javascript'
	src='<%=path%>/dwr/interface/AccountLogic.js'></script>
<script language="javascript" type="text/javascript"
	src="<%=path%>/js/choiceCity.js" charset="UTF-8"></script>
<script language=javascript type='text/javascript'
	src="<%=path%>/js/popcalendar.js" charset="UTF-8"></script>
<script language="javascript">
	function submitProcess() {
		var formName = document.forms["0"];
		if (checkNecessaryInput(formName)) {					   
			formName.submit();
		}
	}
			
	function openPhoto(obj,property) {
	    var file = document.getElementById(obj).value;
	    if (file!="") {
	    	window.open('<%=path%>/page/common/showPhoto.action?formProperty='+file, '', 'height=400, width=400, top=0, left=0, toolbar=no, menubar=no, scrollbars=yes,resizable=yes,location=no, status=no');
	    } else {
	    	window.open('<%=path%>/page/common/showPhoto.action?dbProperty='+property, '', 'height=400, width=400, top=0, left=0, toolbar=no, menubar=no, scrollbars=yes,resizable=yes,location=no, status=no') 
	    }
	}
	function changePhoto(value,obj) {
		document.getElementById(obj).width = 100;
		document.getElementById(obj).height = 100;
		document.getElementById(obj).alt="";
		document.getElementById(obj).src=value;
	}
</script>
<div id="main">
	<div class="content_right">
		<div style="width:745px;margin-left:10px;">
			<div class="titleinfo">
				修改企业信息
			</div>
			<div class="edit_pass">
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<html:form action="modifyCorpAccountUserInfoSubmit" method="post"
						enctype="multipart/form-data">
						<bean:define id="company" name="account" property="accountCompany" />
						<tr>
							<td width="20%" height="27" align="right">
								Email地址：
							</td>
							<td height="27">
								<bean:write name="account" property="email" />
							</td>
						</tr>
						<!-- 企业名称 -->
						<tr>
							<td height="27" align="right">
								企业名称：
							</td>
							<td height="27">
								<bean:write name="company" property="companyName" />
							</td>
						</tr>
						<!--营业执照 注册号 -->
						<tr>
							<td width="15%" height="27" align="right">
								营业执照 注册号：
							</td>
							<td height="27">
								<bean:write name="company" property="licenceNo" />
							</td>
						</tr>
						<!--税务登记号-->
						<tr>
							<td height="27" align="right">
								税务登记号：
							</td>
							<td height="27">
								<bean:write name="company" property="taxId" />
							</td>
						</tr>
						<!--开户许可证核准号-->
						<tr>
							<td height="27" align="right">
								开户许可证核准号：
							</td>
							<td height="27">
								<bean:write name="company" property="accountLicenceNo" />
							</td>
						</tr>
						<!--组织机构代码-->
						<tr>
							<td height="27" align="right">
								组织机构代码：
							</td>
							<td height="27">
								<bean:write name="company" property="organizeNo" />
							</td>
						</tr>
						<!--银行账号-->
						<tr>
							<td height="27" align="right">
								银行账号：
							</td>
							<td height="27">
								<bean:write name="company" property="bankAccount" />
							</td>
						</tr>
						<!--银行名称-->
						<tr>
							<td height="27" align="right">
								银行名称：
							</td>
							<td height="27">
								<bean:write name="company" property="bankName" />
							</td>
						</tr>
						<!--负责人-->
						<tr>
							<td height="27" align="right">
								负责人：
							</td>
							<td height="27">
								<input name="prinName" type="text" maxlength="20"
									class="inputStyle"
									value="<bean:write name="company" property="prinName"/>" />
							</td>
						</tr>
						<!--负责人电话-->
						<tr>
							<td height="27" align="right">
								负责人电话：
							</td>
							<td height="27">
								<input name="prinTel" type="text" maxlength="20"
									class="inputStyle"
									value="<bean:write name="company" property="prinTel"/>" />
							</td>
						</tr>
						<!--财务联系人-->
						<tr>
							<td height="27" align="right">
								财务联系人：
							</td>
							<td height="27">
								<input name="linkMan" type="text" maxlength="20"
									class="inputStyle"
									value="<bean:write name="company" property="linkMan"/>" />
							</td>
						</tr>
						<!--联系电话-->
						<tr>
							<td height="27" align="right">
								联系电话：
							</td>
							<td height="27">
								<input name="linkTel" alt="联系电话" type="text" maxlength="20"
									class="inputStyle"
									value="<bean:write name="company" property="linkTel"/>" />
							</td>
						</tr>
						<!--公司地址-->
						<tr>
							<td height="27" align="right">
								公司地址：
							</td>
							<td height="27">
								<input name="regiAddr" alt="公司地址" type="text" maxlength="85"
									class="inputStyle"
									value="<bean:write name="company" property="regiAddr"/>" />
							</td>
						</tr>
						<!--邮政编码-->
						<tr>
							<td height="27" align="right">
								邮政编码：
							</td>
							<td height="27">
								<input name="regiZip" alt="邮政编码" type="text" maxlength="6"
									class="inputStyle"
									value="<bean:write name="company" property="regiZip"/>" />
							</td>
						</tr>
						<!--企业LOGO  -->
						<tr>
							<td height="27" align="right" valign="top">
								<span class="subTitleBlue2">企业LOGO：</span>
							</td>
							<td height="27">
								<html:file property="theFiles1" onkeydown="return false"
									size="45" styleClass="inputStyle"
									onchange="changePhoto(this.value,'photo')" />
								<br />
								(支持gif,jpeg,jpg格式,大小不超过512K)
									<!-- style="cursor:hand" onclick="openPhoto('theFiles1', 'photo');"-->
							</td>
						</tr>
						<tr>
							<td height="27" align="right" valign="center">
								<span class="subTitleBlue2">上传照片：</span>
							</td>
							<td>
									 <img id="photo" alt="企业LOGO"
										src="<%=path%>/page/common/showPhoto.action?dbProperty=photo&amp;compressSize=86"
										width="86" height="65" class="personalLogo" />
									<!-- style="cursor:hand" onclick="openPhoto('theFiles1', 'photo');"-->
							</td>
						</tr>
						<tr>
							<td height="55" align="right" valign="top">
								&nbsp;
							</td>
							<td>
								<input type="button" name="sure" id="button2" value="确 定"
									class="button_style" onclick="submitProcess();" />
								<%
											if (!IAccountConst.COMPANY_TYPE_GATEWAY.equals(user
											.getCompanyType())
											|| IAccountConst.USERTYPE_CORP_ADMIN.equals(user
											.getUserType())) {
								%>
								<input type="button" name="return" id="button" value="返 回"
									class="button_style"
									onclick="loading('<%=path%>/route.do?modual=space$account&showTab=3');" />
								<%
								}
								%>
							</td>
						</tr>
					</html:form>
				</table>
			</div>
		</div>
	</div>
</div>
